package com.hddx;

public class Test {

    public static void main(String[] args){
        Leader myLeader = new MyLeader();
        Secretary secretary = new Secretary(myLeader);
        //动态派遣一个代理对象
        Leader instance = (Leader) secretary.getInstance();
        instance.sign();
        instance.seal();
    }

}
